package com.jie.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jie.dto.ArticleDTO;
import com.jie.entity.Article;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 论坛文章表 Mapper 接口
 * </p>
 *
 * @author jie
 * @since 2024-05-29
 */
@Mapper
public interface ArticleMapper extends BaseMapper<Article> {
    boolean addCommentCount(@Param("articleId") int articleId, @Param("commentCount") int commentCount);

    List<ArticleDTO> selectArticleList();
}
